import React,{Component} from 'react';
import { getCertPage } from 'api/company.js';
export default class Auth extends Component{
	constructor (props) {
		super(props)
		this.state={
			__html:''
		}
	}
  _getCertPage () { //店铺证书页
  	getCertPage({
  		shop_id: this.props.location.state.shop_id
  	}).then( res => {
  		this.setState({
  			__html:res
  		})
  	})
  }
  // goBack () { //回退到验证页
  // 	this.props.history.push({
  //           pathname: '/company'
  //         })
  // }
  componentWillMount () {
  	this._getCertPage()
  }
	render(){
		return(
			<div dangerouslySetInnerHTML={{__html:this.state.__html}}></div>
		)
	}
}